import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Check from "../views/Check.vue";
import Demo from "../views/Demo.vue";
import CheckDemo from "../views/CheckDemo.vue";
import Table from "../views/Table.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/check",
    name: "Check",
    component: Check,
  },
  {
    path: "/demo",
    name: "Demo",
    component: Demo,
  },
  {
    path: "/table",
    name: "Table",
    component: Table,
  },
  {
    path: "/checkdemo",
    name: "CheckDemo",
    component: CheckDemo,
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
